package br.com.dbclass.db.factory;

import br.com.dbclass.db.DataBase;

public class DataBaseFactory {
	private static DataBaseFactory aDataBaseFactory = null;
	private DataBase aDataBase = null;

	private  DataBaseFactory(){};
	
	public static DataBaseFactory getInstance(){
		if(DataBaseFactory.aDataBaseFactory == null){
			DataBaseFactory.aDataBaseFactory = new DataBaseFactory();
		}
		return DataBaseFactory.aDataBaseFactory;
	}
	
	public DataBase createDB(String pDataBase){
		
		if(this.aDataBase != null && this.aDataBase.getClass().equals(pDataBase)){
		
		}else if(pDataBase.equals(DataBase.DATABASE_FIREBIRD)){
			
		}else if(pDataBase.equals(DataBase.DATABASE_ORACLE)){
			
		}else if(pDataBase.equals(DataBase.DATABASE_MYSQL)){
			
		}else if(pDataBase.equals(DataBase.DATABASE_SQLSERVER)){
			
		}
			
		return null;
	}
}
